package com.demo.ribbon.client.custom;

import com.demo.ribbon.client.custom.annotations.ExcudeAnnotation;
import com.demo.ribbon.client.custom.config.HiRibbonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@RibbonClients(value = {
        @RibbonClient(name = "hi-hello", configuration = HiRibbonConfig.class)
})
@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = {ExcudeAnnotation.class})})
public class RibbonClientCustomApp {

    public static void main(String[] args) {
        SpringApplication.run(RibbonClientCustomApp.class, args);
    }
}
